CREATE PROCEDURE [dbo].[responses_update]
    @responseId int,
    @bookId int,
    @description nvarchar(256),
    @dateOfPublish datetime,
    @userId int
AS
UPDATE [dbo].[Responses] SET     [dbo].[Responses].[BookId] = @bookId,
    [dbo].[Responses].[Content] = @description,
    [dbo].[Responses].[DateOfPublish] = @dateOfPublish,
    [dbo].[Responses].[UserId] = @userId
WHERE
    [dbo].[Responses].[ResponseId]=@responseId
SELECT
    [ResponseId],
    [BookId],
    [Content],
    [DateOfPublish],
    [UserId]
FROM [dbo].[Responses] 
WHERE
    Responses.[ResponseId]=@responseId

RETURN 0
